{% extends 'SonataAdminBundle:CRUD:edit.html.twig' %}
{# Acme/MyBundle/Ressources/view/my-custom-edit.html.twig #}

{% block title %}
    {{ "Editando Concurso"|trans }}
{% endblock%}

{% block actions %}
<div class="sonata-actions">
    <ul>
        
             {% if admin.hasroute('list') and admin.isGranted('LIST')%}
            <li class="btn sonata-action-element"><a href="{{ admin.generateUrl('list') }}">{% trans from 'SonataAdminBundle' %}link_action_list{% endtrans %}</a></li>
             {% endif %}
        </ul>
    </div>
     <script type="text/javascript" >
                    jQuery(this).bind('sonata-collection-item-added', function(){alert("ass")});   
                    $(function(){
                                    $('.date').datepicker({ dateFormat: 'dd/mm/yy' })
    
                })
                </script>

{% endblock %}
